#ifndef CITYMAP_H
#define CITYMAP_H

#include <QMainWindow>
#include <onecity.h>
#include "enterinner.h"
#include <map>

namespace Ui {
class citymap;
}

class citymap : public QMainWindow
{
    Q_OBJECT

public:
    explicit citymap(QWidget *parent = nullptr);
    int px,py;
    map<string,int>getx;
    map<string,int>gety;
    map<string,int>getwidth;
    map<string,int>getheight;
    int cx[6];
    int cy[6];
    EnterInner *school = new EnterInner(this);
    ~citymap();
protected:
    void paintEvent(QPaintEvent *ev);
    void mousePressEvent(QMouseEvent *ev);
//    void mouseDoubleClickEvent(QMouseEvent *ev);
signals:
    void BacktoCountry();
//    void hidethismap();

private:
    Ui::citymap *ui;
    onecity cc;
};

#endif // CITYMAP_H
